package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.WarehouseDao;
import com.ericom.model.Warehouse;
import com.ericom.service.WarehouseManager;

@Service("warehouseManager")
public class WarehouseManagerImpl extends GenericManagerImpl<Warehouse, Long> implements
		WarehouseManager {
  
	private WarehouseDao warehouseDao;
	@Autowired
	public WarehouseManagerImpl(WarehouseDao warehouseDao){
		super(warehouseDao);
		this.warehouseDao=warehouseDao;
	}
	
	@Override
	public List<Warehouse> findByName(String name) {

		return warehouseDao.findByName(name);
	}

}
